<html>
<head><meta charset="utf-8"><title>async/await priority? · wg-async-foundations · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/index.html">wg-async-foundations</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/async.2Fawait.20priority.3F.html">async/await priority?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="164685166"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/async/await%20priority%3F/near/164685166" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kibeom Kim <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/async.2Fawait.20priority.3F.html#164685166">(May 02 2019 at 06:57)</a>:</h4>
<p>Hi, I wasn't following the async/await work closely yet, though I was wondering if there was any discussion on supporting priority(or generally, passing a custom config object) on executing an async task.  Personally I don't know any other languages with async/await support this, but I think it will be really nice to have.  I also searched <a href="https://github.com/rust-lang/rust/issues/50547" target="_blank" title="https://github.com/rust-lang/rust/issues/50547">https://github.com/rust-lang/rust/issues/50547</a> but couldn't find it.</p>



<a name="164685315"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/async/await%20priority%3F/near/164685315" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kibeom Kim <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/async.2Fawait.20priority.3F.html#164685315">(May 02 2019 at 07:00)</a>:</h4>
<p>Also, I think priority can be more than just high/normal/low, for example, if it's "I/O heavy" then the scheduler might want to dedicate a IO thread for all "I/O heavy" tasks, which is a pretty common pattern in fact.</p>



<a name="164716248"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/async/await%20priority%3F/near/164716248" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/async.2Fawait.20priority.3F.html#164716248">(May 02 2019 at 15:10)</a>:</h4>
<p>That isn't really something that the async-await language feature addresses; it would be more at the runtime level.</p>



<a name="164716271"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/async/await%20priority%3F/near/164716271" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/async.2Fawait.20priority.3F.html#164716271">(May 02 2019 at 15:10)</a>:</h4>
<p>You might check with the tokio project or perhaps the async ecosystem WG</p>



<a name="164721556"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/187312-wg-async-foundations/topic/async/await%20priority%3F/near/164721556" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kibeom Kim <a href="https://rust-lang.github.io/zulip_archive/stream/187312-wg-async-foundations/topic/async.2Fawait.20priority.3F.html#164721556">(May 02 2019 at 16:15)</a>:</h4>
<p>I see. Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>